#include "stdio.h"
#include "light.h"

static Light *p1;

static void turnOn() 
{
	printf("Light is ON\n");
}

static void turnOff()
{
	printf("Light is Off\n");
}

CTOR(Light)
	FUNCTION_SETTING(turnOn,turnOn)
	FUNCTION_SETTING(turnOff,turnOff)
END_CTOR

void ginit()
{
	p1 = (Light*)LightNew();
}

void gturnOn()
{
	p1->turnOn();
}

void gturnOff()
{
	p1->turnOff();
}

